import { Pipe, PipeTransform } from '@angular/core';
import * as _ from 'lodash';

@Pipe({
    name: 'parse'
})
export class ParsePipe implements PipeTransform {

    transform(value: any, parser: string): any {
        return _.get(value, parser);
    }

}
